﻿using System;
using System.Collections.Generic;

namespace AspireFyh.ApiService.Entities;

/// <summary>
/// 租户容量信息表
/// </summary>
public partial class TenantCapacity
{
    /// <summary>
    /// 主键ID
    /// </summary>
    public ulong Id { get; set; }

    /// <summary>
    /// Tenant ID
    /// </summary>
    public string TenantId { get; set; } = null!;

    /// <summary>
    /// 配额，0表示使用默认值
    /// </summary>
    public uint Quota { get; set; }

    /// <summary>
    /// 使用量
    /// </summary>
    public uint Usage { get; set; }

    /// <summary>
    /// 单个配置大小上限，单位为字节，0表示使用默认值
    /// </summary>
    public uint MaxSize { get; set; }

    /// <summary>
    /// 聚合子配置最大个数
    /// </summary>
    public uint MaxAggrCount { get; set; }

    /// <summary>
    /// 单个聚合数据的子配置大小上限，单位为字节，0表示使用默认值
    /// </summary>
    public uint MaxAggrSize { get; set; }

    /// <summary>
    /// 最大变更历史数量
    /// </summary>
    public uint MaxHistoryCount { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime GmtCreate { get; set; }

    /// <summary>
    /// 修改时间
    /// </summary>
    public DateTime GmtModified { get; set; }
}
